package MapBase.logic.control.MapBaseControl.Mouse
{
	/**
	 *拖动世界 
	 */	
	import MapBase.logic.MapBase;

	public class MapBaseDrayWorld
	{
		public function MapBaseDrayWorld()
		{

		}
		
		static public  function MDownCMD(mapBase:MapBase,selectGridLayer:Boolean,dragWorld:Boolean):void
		{
			if(!selectGridLayer)  	return;
			
			if(dragWorld)
			{
				mapBase.world.alpha = 0.7;
				mapBase.world.startDrag();
			}
		}
		
		static public  function MUpCMD(mapBase:MapBase,dragEntity:Boolean):void
		{
			if(dragEntity)
			{
				mapBase.world.alpha = 1;
				mapBase.world.stopDrag();	
			}
		}
	}
}